package com.louis.resource.controller;

import com.louis.resource.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;

/**
 * @author XRY
 * @date 2023年06月25日11:11
 */
@Controller("myUserController")
public class UserController {
    //根据名称进行注入
    @Resource(name = "myUserService")
    private UserService userService;

    public void show(){
        System.out.println("UserController...........");
        userService.show();
    }
}
